# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: BrainDamage

_pkgname=python-readability
pkgname=python-readability-lxml
pkgver=0.8.1
pkgrel=6
pkgdesc='Fast html to text parser (article readability tool) python library'
arch=('any')
url='https://github.com/buriy/python-readability'
license=('Apache')
depends=('python-chardet' 'python-lxml')
makedepends=('python-setuptools')
source=("https://github.com/buriy/$_pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('e6650d608174fde8e9feb07cb86c16f5d42e09e0dd446093d1b529d55f2b939a')

build() {
  cd $_pkgname-$pkgver
  python setup.py build
}

package() {
  cd $_pkgname-$pkgver
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
